# jobs\urls.py
from django.conf.urls import url
from django.urls import path

from jobs import views

urlpatterns = [
    # job list
    url(r"^job_list/", views.job_list, name='job_list'),
    # job detail
    url(r"^job_detail/(?P<job_id>\d+)/$", views.job_detail, name='job_detail'),
    # submit resume
    url(r'^resume/add/', views.ResumeCreateView.as_view(), name='resume_add'),
    path(r'resume/<int:pk>/', views.ResumeDetailView.as_view(), name='resume_detail'),  # 必须要用path
    # home page goto job list page
    url(r"^$", views.job_list, name='name'),
]
